package com.chenfan.mcn.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.chenfan.mcn.extension.log.FieldDesc;
import com.chenfan.mcn.constant.DictTypeCst;
import com.chenfan.mcn.model.base.BaseSaveEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 红人收款账号信息
 * </p>
 *
 * @author liuyang
 * @since 2021-01-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("star_account_info")
public class StarAccountInfo extends BaseSaveEntity {

    private static final long serialVersionUID = -1784207717591706433L;

    /**
     * 红人ID
     */
    private Long starId;

    /**
     * 打款类型（1-公司，2-个人，3-工作室）
     */
    @FieldDesc(value = "打款类型", replace = {"公司_1","个人_2","工作室_3"})
    private Integer studioPayment;

    /**
     * 账号类型（取自数据字典）
     */
    @FieldDesc(value = "账号类型", dictType = DictTypeCst.ACCOUNT_TYPE)
    private String accountType;

    /**
     * 红人个税
     */
    @FieldDesc(value = "红人个税")
    private BigDecimal taxRate;

    /**
     * 收款户名
     */
    @FieldDesc(value = "收款户名")
    private String accountName;

    /**
     * 收款卡号
     */
    @FieldDesc(value = "收款卡号")
    private String accountNumber;

    /**
     * 开户行
     */
    @FieldDesc(value = "开户行")
    private String accountBank;

    /**
     * 开户省
     */
    @FieldDesc(value = "开户省")
    private String accountProvince;


    /**
     * 开户市
     */
    @FieldDesc(value = "开户市")
    private String accountCity;

    /**
     * 开户支行
     */
    @FieldDesc(value = "开户支行")
    private String accountBranchBank;

    /**
     * 收款账户身份证号码
     */
    @FieldDesc(value = "收款账户身份证号码")
    private String accountIdCard;

    /**
     * 收款账户手机号
     */
    @FieldDesc(value = "收款账户手机号")
    private String accountPhone;

    /**
     * 备注
     */
    @FieldDesc(value = "备注")
    private String remark;

    /**
     * 支付宝账号
     */
    @FieldDesc(value = "支付宝账号")
    private String alipayAccount;

}